﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ly.Web.Admin
{
    public partial class AjaxWork : System.Web.UI.Page
    {
        ly.BLL.WorkInfo workBll = new BLL.WorkInfo();
        ly.Model.WorkInfo workModel = new Model.WorkInfo();
        protected void Page_Load(object sender, EventArgs e)
        {
            //string type = Request["type"];
            //switch (type)
            //{
                //case "check":
                   // try
                    //{
            //if (!IsPostBack)
            //{
                int workid = Convert.ToInt32(Request["workid"].Trim());
                workModel = workBll.GetModel(workid);
                workModel.WorkVerify = "审核通过";
                if (workBll.Update(workModel))
                {
                    Response.Write("success");
                }
                else
                {
                    Response.Write("error");
                }
            //}

                   // }
                    //catch (Exception r)
                    //{
                    //    Console.WriteLine(r.ToString());
                    //    Response.Write("errorq");
                    //}
                    //break;
           // }
        }
    }
}